<div class="col-sm-4" th:fragment="datebetween (title,name1,val1,name2,val2)">
	<label for="contacts" class="col-sm-4 control-label text-r mt-5"><strong th:text="${title}+'：'"></strong></label>
	<div class="col-sm-8">
		<input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}' })" id="logmin" class="input-text Wdate" style="width:120px;" placeholder="输入开始时间" th:value="${val1!=null?#dates.format(val1, 'yyyy-MM-dd'):''}" th:name="${name1}"/>
			-
			<input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })" id="logmax" class="input-text Wdate" style="width:120px;" placeholder="输入结束时间" th:value="${val2!=null?#dates.format(val2, 'yyyy-MM-dd'):''}" th:name="${name2}"/>
		</div>
</div>


<div class="col-sm-4" th:fragment="datebetweennolimit (title,name1,val1,name2,val2)">
	<label for="contacts" class="col-sm-4 control-label text-r mt-5"><strong th:text="${title}+'：'"></strong></label>
	<div class="col-sm-8">
		<input type="text" th:onfocus="'WdatePicker({ dateFmt:\'yyyy-MM-dd\',maxDate:\'#F{$dp.$D('+${name2}+')}\' })'" class="input-text Wdate" style="width:120px;" placeholder="输入开始时间" th:id="${name1}" th:value="${val1!=null?#dates.format(val1, 'yyyy-MM-dd'):''}" th:name="${name1}"/>
		-
		<input type="text" th:onfocus="'WdatePicker({ dateFmt:\'yyyy-MM-dd\',minDate:\'#F{$dp.$D('+${name1}+')}\' })'" class="input-text Wdate" style="width:120px;" placeholder="输入结束时间" th:id="${name2}" th:value="${val2!=null?#dates.format(val2, 'yyyy-MM-dd'):''}" th:name="${name2}"/>		</div>
</div>